import request from '@/utils/request'

// 查询作业提交列表
export function listSubmitWork(query) {
  return request({
    url: '/biz/submitWork/list',
    method: 'get',
    params: query
  })
}

// 查询作业提交详细
export function getSubmitWork(id) {
  return request({
    url: '/biz/submitWork/' + id,
    method: 'get'
  })
}

// 新增作业提交
export function addSubmitWork(data) {
  return request({
    url: '/biz/submitWork',
    method: 'post',
    data: data
  })
}

// 修改作业提交
export function updateSubmitWork(data) {
  return request({
    url: '/biz/submitWork',
    method: 'put',
    data: data
  })
}

// 删除作业提交
export function delSubmitWork(id) {
  return request({
    url: '/biz/submitWork/' + id,
    method: 'delete'
  })
}
